package factory;

import factory.impl.NikeImpl;
import factory.impl.QiPaiImpl;
import factory.service.ClothesMakeService;

/**
 * 品牌服装生产工厂
 *
 * @author lihaoshan
 * @date 2018-06-22
 * */
public class BrandClothesMakeFactory extends AbstractFactory{

    @Override
    public ClothesMakeService getClothes(String brand){

        if ("耐克".equals(brand)) {
            return new NikeImpl();
        } else if ("柒牌".equals(brand)) {
            return new QiPaiImpl();
        }

        return null;
    }

}
